/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

.generated-ai-modal {
  display: flex;
  flex-direction: column;
  gap: var(--pad);
  justify-content: center;
  width: 500px;
  height: 300px;
  padding: var(--pad);
}

.generated-ai-modal vscode-text-area,
.generated-ai-modal .error-notice {
  position: relative;
  height: 100%;
  flex-grow: 1;
  margin: 2px;
  overflow-y: scroll;
}

.generated-ai-modal vscode-text-area {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.generated-ai-modal vscode-text-area::-webkit-scrollbar {
  display: none;
}

.generated-ai-modal vscode-text-area {
  width: 100%;
}

.generated-ai-modal vscode-text-area::part(control) {
  border: unset;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  border-radius: 4px;
}

.generated-message-textarea-container:focus-within {
  background: var(--focus-border);
}
.generated-message-textarea-container {
  background: linear-gradient(to right, #8c1be4 0, #e41bac 100%);
  border-radius: 6px;
}
.generated-message-textarea-container .codicon {
  position: absolute;
  left: calc(50% - 16px);
  right: calc(50% - 16px);
  top: calc(50% - 16px);
  bottom: calc(50% - 16px);
  z-index: 2;
  width: 32px;
  font-size: 32px;
}

.generated-message-button-bar {
  display: flex;
  gap: var(--pad);
  justify-content: flex-end;
  width: 100%;
}
